<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.PrintWriter"%>
<%@ page import="java.util.*"%>
<%@ page import="javax.servlet.*"%>
<%@ page import="model.MonHocM"%>
<%@ page import="dao.MonHocD"%>
<%
	String query = request.getParameter("q");
	MonHocD dao = new MonHocD();
	ArrayList<MonHocM> ls = dao.searchMH(query);
	int cnt = 1;
	for (int i = 0; i < ls.size(); i++) {
		out.print(ls.get(i).getTen() + "\n");
		if (cnt >= 10)
			break;
		cnt++;
	}
%>